package org.dept.service;

import org.dept.pojo.Dept;
import org.dept.dao.DeptDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService{

    @Resource
    private DeptDao deptDao;

    public int addDept(Dept dept) {
        return deptDao.addDept(dept);
    }

    public Dept select(int id) {
        return deptDao.select(id);
    }

    public List<Dept> dList() {
        return deptDao.dList();
    }
}
